/**
 * Copyright (C) 2011 ChangSha Creator Science & Technology CO,.LTD. All rights reserved.
 * Creator PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 */

package wzw.swing;

import java.awt.GridLayout;

import javax.swing.JDialog;
import javax.swing.JPanel;
import javax.swing.JScrollPane;

import com.sunking.swing.JFileTree;
import com.sunking.swing.JFileTree.AllFileFilter;

/**
 * <p>java class file describe</p>
 * @author Zeven on 2011-7-19
 * @version	1.0
 * @see		Object#equals(java.lang.Object)
 * @since	JDK5
 */

public class FileChooser extends JDialog {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	/**
	 * <p>java class file describe</p>
	 * @author Zeven on 2011-7-19
	 * @see		Object#equals(java.lang.Object)
	 */

	public static void main(String[] args) {
		FileChooser jfc = new FileChooser();
		jfc.show();

	}

	/**
	 * 
	 */
	public FileChooser() {
		super();
		// TODO Auto-generated constructor stub
        JPanel pCenter = new JPanel(new GridLayout(1,3));
        pCenter.add(new JScrollPane(new JFileTree(new AllFileFilter())));
        pCenter.setBounds(new java.awt.Rectangle(0,0,300,260));
        this.setLayout(null);
        this.add(pCenter,null);
	}

}
